n = (document.forms.length - 0) // replace 0 with number of extenal forms on page(i.e. the number of FORM tags on the page)
for (var i = 0; i < n; i++) {
if (document.forms[i].picklink.checked == true) {
var site = document.forms[i].site.value;
var desc = document.forms[i].desc.value;
link = '<a href="' + site + '" target="opener">' + site + '</a><br>' + desc + '<br><br>';
linkPage = linkPage + link
}
}
if (linkPage == startPage){
alert('You did not mark any links - please mark some and start again')
}
else{
endPage = '<hr noshade color="#880000"><center><h2><a href="http://www.yoururl.com/">The site you just came from</a></h2></BODY></HTML>'; // make sure you put a url and reference in here(to your own site!)